package com.xia.demo.demoserverb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author xiafb
 * @EnableDiscoveryClient 启动注册发现注解
 * @EnableFeignClients 启用feign客户端扫
 * 描注解（扫描发现com.xia.demo.demoservera.feign.IServiceAFeign），
 * IServiceAFeign包名不在当前包下面，所以需要声明扫描的包
 */
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.xia.demo.demoservera"})
@SpringBootApplication
public class DemoServerBApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoServerBApplication.class, args);
    }

}
